package com.yedean.mall.token;

import lombok.Data;

/**
 * UserInfo
 *
 * @author yedean
 * @date 2022/8/17
 */
@Data
public class UserInfo {
    /**
     * 用户账号
     */
    private String nickname;
    /**
     * 用户等级
     */
    private Long memberLevelId;

    /**
     * 登入时间
     */
    private long loginTime;

    /**
     * 推送ID/设备唯一标识
     */
    private String pushId;
    
    public UserInfo(String nickname,Long memberLevelId,long loginTime){
        this(nickname,memberLevelId,loginTime,null);
    }

    public UserInfo(String nickname, Long memberLevelId, long loginTime, String pushId) {
        this.nickname = nickname;
        this.memberLevelId = memberLevelId;
        this.loginTime = loginTime;
        this.pushId = pushId;
    }
    
}
